<?php


namespace App\Http\Request\System\Classroom;


use App\Common\Utils\BaseRequest;

class GetClassesByGradeIdRequest extends BaseRequest
{

    public function rules() {
        $rules = [
            'grade_id' => 'required|integer|min:1',
        ];

        return $rules;
    }

    public function messages() {
        $messages = [
            'grade_id.required' => '年级id不能为空',
            'grade_id.integer' => '年级id为整数',
            'grade_id.min' => '年级id必须大于0',
        ];

        return $messages;
    }
}
